package airacrobats.main;

import airacrobats.error.ErrorHandler;
import javax.swing.SwingUtilities;

/**
 * Main.
 */
public class Main
{
    /**
     * The main method.
     * @param args Arguments.
     */
    public static void main(String[] args)
    {
        Thread.setDefaultUncaughtExceptionHandler(new ErrorHandler());
        
        SwingUtilities.invokeLater(new Runnable()
        {
            public void run()
            {
                try
                {
                    new GearManager().init();
                }
                catch (Exception ex)
                {
                    Thread.getDefaultUncaughtExceptionHandler().uncaughtException(null, ex);
                }
            }
        });
    }
}
